package com.hyt.it.ogt.ks.model.entity.mongodb;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author wuyingge
 * @ClassName CandidateAnswerBackup.java
 * @Description 考生保存答案请求参数备份
 * @createTime 2021年10月25日 15:33:00
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@Builder
@Document("ks_candidate_answer_log_backup")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "CandidateAnswerLogBackup", description = "考生保存答案请求参数备份")
@Getter
@Setter
public class CandidateAnswerLogBackup implements Serializable {
    private static final long serialVersionUID = -3161010348539098109L;

    @Id
    private String id;

    @ApiModelProperty(value = "考试id")
    private String examId;

    @ApiModelProperty(value = "考生Id")
    private String candidateId;

    @ApiModelProperty(value = "试卷顺序号")
    private Integer paperSort;

    @ApiModelProperty(value = "前端请求参数备份")
    private String requestJson;

    @ApiModelProperty(value = "保存方式，timing:定时保存，其他为正常保存")
    private String saveType;

    @ApiModelProperty(value = "创建时间", hidden = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss" , timezone="GMT+8")
    private LocalDateTime createDate;
}
